home *** CD-ROM | disk | FTP | other *** search
/ Shareware Grab Bag / Shareware Grab Bag.iso / 050 / madtrb4.arc / READTHIS.NOW < prev    next >
Text File  |  1985-11-29  |  30KB  |  579 lines

  1.  
  2.  
  3.                           T U R B O   W H E E L S
  4.                                version 1.00          
  5.                       Copyright 1984 by Neil J. Rubenking          
  6.                    
  7.      This disk contains quite a few procedures and functions that          
  8.      make TURBO Pascal easier to use.  Why re-invent the wheel when          
  9.      you can get TURBO WHEELS?  I am releasing it for distribution in          
  10.      the User Group/Bulletin Board network subject to the following          
  11.      stipulations:          
  12.  
  13.      1)  Anyone may get a copy of these files for examina-
  14.      tion, either through their local Users Group or          
  15.      Bulletin Board, or by sending me a blank, DOUBLE-sided          
  16.      diskette and a prepaid, self-addressed diskette          
  17.      mailer.  Regardless of how the disk is obtained, anyone          
  18.      who actually finds the contents USEFUL should send me          
  19.      $10, so I can continue writing and releasing software          
  20.      in this User-Supported fashion.  Send $10 to:          
  21.  
  22.                Neil J. Rubenking          
  23.                300 Page St.          
  24.                San Francisco, CA  94102          
  25.  
  26.      2)  I retain all rights to the SOURCE code.  Recipients          
  27.      of the procedures may freely $INCLUDE them in compiled          
  28.      programs, but may not release the SOURCE.          
  29.  
  30.      3)  Clubs may freely copy and distribute the disk for a          
  31.      nominal fee, not to exceed $8.          
  32.  
  33.           With the legalities aside, I hope you find these procedures          
  34.      useful in your programs.  Each has at least one "driver" program,          
  35.      to illustrate its actual use.  If you are new to the concept of          
  36.      $INCLUDEing pre-written code in your TURBO Pascal programs, study          
  37.      the drivers.  There are also several minor applications/utilities          
  38.      constructed using 8 or 10 of the handy procedures.  A listing and          
  39.      description of the procedures follows.          
  40.  
  41.           A keen observer might correctly deduce the following from          
  42.      the type of files I have put on this disk.          
  43.  
  44.           1) I don't have a Color/Graphics display          
  45.           2) I don't do much in math and scientific programming          
  46.           3) I do write programs that involve creating and manipu-
  47.              lating disk files.          
  48.           4) I do like my programs to look and sound good.          
  49.  
  50.           You may have noticed other disks of TURBO files on the          
  51.      market.  One that I have found useful is just called "Procedures          
  52.      and Functions for TURBO Pascal", from:          
  53.  
  54.                The Success Press          
  55.                P.O. Box 2795          
  56.                Des Plaines, IL          
  57.  
  58.      Send Bill Todd $20 to receive these procedures.  A list of          
  59.      them is on this disk as "SUCCESS.DOC".          
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.                                                 TURBO WHEELS   page 2
  68.  
  69.  
  70.  
  71.      *** SETTING UP THE DISK ***          
  72.  
  73.           Format a blank diskette with the /S option, to make it a          
  74.      "bootable" DOS disk.  Copy COMMAND.COM onto it, too.  Copy all          
  75.      the files from this diskette onto the new diskette, and finally          
  76.      copy the files TURBO.COM and TURBO.MSG from the TURBO Pascal disk.          
  77.      Now your TURBO is a more powerful development tool -- it has WHEELS!              development tool -- it has WHEELS!          
  78.  
  79.  
  80.      *** FILES ON THIS DISK ***          
  81.  
  82.           The file "README.###" is a list of all the files, with a          
  83.      one-line description of each for quick reference.  The files for          
  84.      INCLUsion in your programs have the extension .LIB or .TYP.          
  85.      Almost every .LIB file has a short program to illustrate its          
  86.      action (often called a "driver").  The drivers have the same name          
  87.      as their .LIB file, but the extension is .PAS.  There are several          
  88.      utility application programs that use 8 or 10 .LIB files, and a          
  89.      few data files (extension .DAT).  Now on to the descriptions of          
  90.      the idividual files.          
  91.  
  92.  
  93.      *** TYPE DECLARATION FILES ***
  94.  
  95.       Most of the files on this disk use variables of type REGPACK          
  96.      (for REGister PACK) or FILENAME_TYPE.  The description at the top          
  97.      of the INCLUDE file will indicate if these or any other files          
  98.      need to also be present.  The reason to NOT write these type          
  99.      declarations directly into the files that require them is that          
  100.      TURBO objects to multiple descriptions of the same TYPE.          
  101.  
  102.      FILENAME.TYP contains the definition of "filename_type" as a          
  103.           string of up to 64 characters.          
  104.  
  105.      REGPACK.TYP describes the type of variable required as input by          
  106.           TURBO's procedures INTR and MSDOS.  You do not need to          
  107.           understand these to use them!  (But if you DO, you can do a          
  108.           lot!)          
  109.  
  110.      SCREENS.TYP is the declaration of variable type SCREEN, which is          
  111.           exactly the same "shape" as the (text) video display          
  112.           memory.  Using variables of this TYPE, you can easily do          
  113.           direct screen manipulation.          
  114.  
  115.      ERRMESSG.LIB is another file that is required by quite a few          
  116.           others.  It contains the function MESSAGE which receives as          
  117.           input a one-byte error code (output of a DOS function) and
  118.           returns the "translation" of that code, as specified in the          
  119.           DOS 2.0 manual.          
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.  
  130.  
  131.  
  132.  
  133.  
  134.                                                 TURBO WHEELS   page 3
  135.  
  136.      *** DOS 2.0 FILE HANDLING ***          
  137.  
  138.      TURBO's file handling procedures do NOT work with subdirec-          
  139.      tories, as you may have found out.  The following procedures are          
  140.      implementations of the DOS 2.0 procedures--all the ordinary ones          
  141.      and some new ones, too.          
  142.  
  143.      EXTENDIO.DAT is an exact description of the parameters passed to          
  144.           and from these new IO functions.  Until you are used to          
  145.           using them, you may want to actually insert this document          
  146.           into your source for reference (or refer to it using          
  147.           SIDEKICK!).          
  148.  
  149.      EXTENDIO.LIB, for EXTENDed Input/Output contains 2.0 versions of          
  150.           Reset, Rewrite, Close, Read, Write, Seek, and Erase.  Each          
  151.           new procedure has the same name as the one it replaces,          
  152.           preceded by an X (Xreset, Xclose, etc.).  Any time you use          
  153.           these Extended IO procedures, you will also have to $INCLUDE          
  154.           the TYPE files REGPACK.TYP and FILENAME.TYP, and the file          
  155.           ERRMESSG.LIB--all of these procedures return a one-byte          
  156.           error code if anything goes wrong, and ERRMESSG.LIB lets you          
  157.           interpret the error by saying "writeLn(message(error))".          
  158.  
  159.                In the DOS 2.0 mode, instead of a File Variable (a          
  160.           variable of TYPE "file of something") you will use an          
  161.           INTEGER File Handle.  XReset and XRewrite receive a full-          
  162.           path filename (up to 64 characters) and return the file          
  163.           handle, which you will use for all further references to the          
  164.           file.  XClose receives just the file handle (any open file          
  165.           has a handle), and XErase receives just the path/filename.          
  166.  
  167.                Since DOS 2.0 files are effectively just files of          
  168.           bytes, the XRead and XWrite operations work rather diffe-          
  169.           rently from their forebears.  You pass the File Handle, the          
  170.           variable to/from which data is to be read/written, and the          
  171.           SIZE of that variable (easily obtained with TURBO's SizeOf          
  172.           function).  If the variable is a 1K array, then 1K will be          
  173.           read into it (or written from it).  The Size-passing is          
  174.           necessary.  Without it, you would have to write a new XRead          
  175.           and XWrite for each type of variable!          
  176.  
  177.                XSeek is a bit complicated.  You pass the File Handle          
  178.           (as usual), the Size of the records in your file, and the          
  179.           point from which you want to start your XSeek (Beginning,          
  180.           End, or Current position), and you get back the new current          
  181.           position.  Even if you don't want the new current position          
  182.           (e.g., you just wanted to set the file pointer back to the          
  183.           beginning, or all the way to the end for APPEND), you still          
  184.           have to provide a dummy variable for it.          
  185.  
  186.           For very detailed descriptions of the parameters to          
  187.           pass to and from these EXTENDed Input Output operations, see          
  188.           EXTENDIO.DAT.          
  189.  
  190.      MOVEFILE.LIB might well be called "XRename", because it does          
  191.           serve to rename files on any path.  However, the Renaming          
  192.           extends to the full path--you can MOVE a file to a different          
  193.           subdirectory simply by changing its path.  You pass the old          
  194.           path and the new path, and receive the usual one-byte error          
  195.           code if anything goes wrong.
  196.  
  197.  
  198.  
  199.  
  200.  
  201.  
  202.                                                 TURBO WHEELS   page 4
  203.  
  204.      GETFILE.LIB contains two procedures, Find_First and Find_Next.          
  205.           Find_First serves to find the first occurrence of a file          
  206.           matching the template you supply (using the standard DOS          
  207.           wildcard characters, ? for any character and * for anything          
  208.           at all, AND using full-path filenames).  You also specify          
  209.           the File Attribute--you can GET files that are Read-Only,          
  210.           Hidden, System, Volume label, or Directory.  Find_First sets          
  211.           the DTA (Disk Transfer Area) to a buffer supplied by you and          
  212.           either puts information about the file in the buffer, or          
  213.           returns an error code.  Once you have Found the First          
  214.           occurrence, you repeat Find_Next until you don't find any          
  215.           more.          
  216.  
  217.      ALLFILES.LIB is a very handy procedure to include in any program          
  218.           that makes use of other files (e.g., a word processor,          
  219.           picture editor, music maker, &c.).  You pass the top left          
  220.           and bottom right coordinates of an available screen area,          
  221.           and a template for the files you want, and ALLFILES takes          
  222.           over.  It opens and frames a window at the coordinates and          
  223.           displays all matching files.  The user positions a pointer          
  224.           at the required file and presses <return> to select it.  If          
  225.           there are more files than will fit in the window, the user          
  226.           has the choice of selecting a visible file or going on to          
  227.           another window full.  Once a file is selected, ALLFILES          
  228.           erases its window and returns the filename.  Note that your          
  229.           program will not have to test for existence of the file          
  230.           before trying to open it--you KNOW it exists.          
  231.  
  232.           For an extremely classy use of ALLFILES, you may want          
  233.          to use the technique described in SCREENS.LIB to save          
  234.          whatever is on the screen before calling ALLFILES and pop it          
  235.          right back when ALLFILES is done.          
  236.  
  237.      MKRMDIR.LIB brings the DOS MKDIR and RMDIR (MaKe DIRectory and          
  238.          DIRectory) into TURBO.  If you want to do it, you can.          
  239.  
  240.      FILEATTR.LIB lets you change the File Attribute byte (Read-Only,          
  241.           Hidden, System, Archive) of a file on any path.          
  242.  
  243.      GTSETDIR.LIB lets you GET or SET the current subDIRectory.  It          
  244.           may well be used in conjunction with GETSTDD below.          
  245.  
  246.  
  247. *** DOS 1 OR 2 FILE HANDLING ***          
  248.  
  249.     GETSETDD.LIB uses DOS function calls to GET or SET the Default          
  250.          Drive.          
  251.  
  252.      EXISTFIL.LIB checks for the existence of a file.  You pass it the          
  253.          "old-fashioned" filename (no subdirectory!) and it returns          
  254.          true or false.  (The EXTENDed I/O operations do not directly          
  255.          crash your program if the file requested does not exist, so          
  256.          they don't need a corresponding 2.0 function.)          
  257.  
  258.  
  259. *** DISK READ/WRITE PROCEDURES ***          
  260.  
  261.      DISKTYP.LIB checks the type of disk (single/double sided, 8/9          
  262.           sectors per track).  You pass the drive letter, and it          
  263.           returns the number of K of disk space (an integer, 160, 180,          
  264.           320, or 360), 0 if an invalid drive was specified, or 1 for          
  265.           a non-standard format.
  266.  
  267.  
  268.  
  269.  
  270.                                                 TURBO WHEELS   page 5
  271.  
  272.      GETSECTR.LIB conducts I/O between a specific sector on the disk          
  273.           and a buffer variable declared by you.  You specify [R]ead          
  274.           or [W]rite and the side, sector, and track, and the buffer          
  275.           variable is either read from or written to the disk.  As          
  276.           usual, a one-byte error code is returned.  On the advice of          
  277.           the DOS Manual, GetSector makes three tries at reading the          
  278.           sector before it gives up and returns an error code.          
  279.                The buffer variable must be 512 bytes, but you can          
  280.           choose to arrange these bytes in convenient ways.  For          
  281.           example, in the application LABEL.PAS, the buffer is an          
  282.           array[1..16] of type directory_entry, and reading a direc-          
  283.           tory sector gives you instant access to its 16 entries.          
  284.           NOTE that, unlike most of the procedures on this disk,          
  285.           GETSECTR does not have a driver with the same name.  The          
  286.           sample programs that use GETSECTR are LABEL and DISKMOD.          
  287.  
  288.      LABEL.PAS uses DISKTYP.LIB, GETSECTR.LIB, and several other files          
  289.           to read and write the volume label.  It first seeks an          
  290.           existing label in the directory (NOTE:  the volume label is          
  291.           just a special kind of directory entry.)  If found, you may          
  292.           change it.  If not found, the first directory slot that is          
  293.           either never-used or erased is converted to a label of your          
  294.           choice.  The current date and time are properly included          
  295.           with your volume label, but the bit-manipulation that does          
  296.           that is horrifying!          
  297.  
  298.      DISKMOD.PAS is a working Disk Sector Viewing and Modifying          
  299.           program, based on DISKMODF.BAS by John VanderGrift.  You          
  300.           select a sector and get it displayed both in (filtered)          
  301.           ASCII and hex.  You can modify the displayed sector by          
  302.           simply typing in new values, but you must specifically ask          
  303.           to record the modifications.  Pressing PgDn and PgUp move to          
  304.           the next or previous sectors--the procedures "increment" and          
  305.           "decrement" embody the DOS sector numbering scheme.          
  306.  
  307.  
  308. *** VIDEO DISPLAY PROCEDURES ***          
  309.  
  310.      CURSOR.LIB contains the procedure Cursor_Control.  You set the          
  311.           top and bottom "scan lines" for the cursor.  You'll want to          
  312.           $INCLUDE the file MONITOR.LIB and ask to CheckColor before          
  313.           you change the cursor around, because the Monochrome cursor          
  314.           has 14 scan lines (numbered 0 at the top to 13 at the          
  315.           bottom) while the Color cursor is only 7 high (0 to 6).  The          
  316.           normal cursor is 12,13 in Mono and 6,7 in color.  In          
  317.           Monochrome, you can get a two-part cursor by setting the top          
  318.           line below the bottom.  NOTE that you can "kill" the cursor          
  319.           by setting the top line to 48, bottom to 0.          
  320.  
  321.      MONITOR.LIB sets the values of the variables COLOR (boolean) and          
  322.           ScreenSeg (integer) for use by other procedures.  Besides          
  323.           $INCLUDEing it, you must invoke CheckColor at the beginning
  324.           of your program.
  325.  
  326.  
  327.  
  328.  
  329.  
  330.  
  331.  
  332.  
  333.  
  334.  
  335.                                                 TURBO WHEELS   page 6
  336.  
  337.      SCREEN.LIB contains procedures to read and write the character          
  338.           and screen attribute (i.e., COLOR) at any location on the          
  339.           screen IN TEXT MODE.  The driver, SCREEN.PAS, is a little          
  340.           video game showing how handy these procedures can be.          
  341.  
  342.      POPSCREN.LIB is a slightly frivolous use of the SCREEN data type,          
  343.           declared in SCREENS.TYP.  Several SCREEN variables are          
  344.           created and rapidly switched to the display.  A pop-up menu          
  345.           example is included.          
  346.  
  347.      POPSCREN.DAT is a screen file used by POPSCREN.LIB          
  348.  
  349.      GRFXTABL.LIB defines a table of ROMEntries "on top" of the ROM          
  350.           graphics table, giving us (read-only) access to the dot          
  351.           patterns used to create the monochrome characters.          
  352.  
  353.      TITLES.LIB contains the procedure MakeTitle.  Given a title up to          
  354.           ten characters and a starting row, it makes a big title on          
  355.           the screen by using the character patterns from GRFXTABL.          
  356.  
  357.      WINDOWS.LIB offers another approach to using windows.  The          
  358.           variable type "corners" is declared to be an array[1..4] of          
  359.           byte.  Windows that your program will use are set at the          
  360.           beginning of the program by declaring CONSTants of type          
  361.           "corners".  The procedures DoWindow and DoFrame operate on          
  362.           input of type "corners".  If, later in the development of          
  363.           your program, you want to move the windows around, you just          
  364.           change the CONSTant declaration at the top.          
  365.  
  366.  
  367. *** kEYBOARD PROCEDURES ***          
  368.  
  369.      GETKEYS.LIB is one of my favorites.  The line "GetKeys(C,D)"          
  370.           causes your program to wait for a keystroke and, if it is an          
  371.           "ordinary" keystroke, returns the character in C and chr(0)          
  372.           in D.  If, however, it was a "special" keystroke (arrow key,          
  373.           function key), it returns chr(27) in C and a code character          
  374.           in D.  The file KEYCHART.DAT tabulates these special codes.          
  375.  
  376.      KEYBOARD.LIB is another approach to trapping keystrokes.  It uses          
  377.           the keyboard BIOS interrupt $16 to get the scan code and          
  378.           ASCII code of any key pressed.  The file SCANCODE.DAT is a          
  379.           chart of keyboard codes, along with a table of "extended"          
  380.           scan codes.          
  381.  
  382.      FANCYKEY.LIB goes KEYBOARD one better.  It returns a phrase          
  383.           describing the key pressed, such as "Alt-A", "Shift-F1",          
  384.           "Back Tab", etc.          
  385.  
  386.  
  387.  
  388.  
  389.  
  390.  
  391.  
  392.  
  393.  
  394.  
  395.  
  396.  
  397.  
  398.  
  399.  
  400.  
  401.  
  402.                                                 TURBO WHEELS   page 7
  403.  
  404.      NEWINT9.LIB is an ambitious procedure.  The keyboard's output is          
  405.           generally handled by Interrupt $9, which is called BY THE          
  406.           KEYBOARD whenever a key is struck.  This interrupt checks          
  407.           for shift states, filters out key release codes, and          
  408.           produces the "typematic" effect, whereby a key held down          
  409.           repeats.  Certain applications might be better off WITHOUT          
  410.           the typematic and WITH access to the key release codes -- my          
  411.           own PIANO MAN program comes to mind.  I required a note to          
  412.           sound ONCE when a key was pressed and stop when that key was          
  413.           released.  Games might requires this feature.  If you do use          
  414.           it, your program should:          
  415.  
  416.                1) invoke procedure SetUpInt, which creates the new          
  417.                   interrupt.          
  418.  
  419.                2) invoke NewInt, which saves the normal interrupt          
  420.                   vector and replaces it with directions to the new one.          
  421.  
  422.                3) MOST IMPORTANT, before the program ends, invoke          
  423.                   OldInt to restore the normal interrupt.  If you don't          
  424.                   do this, or if your program crashes before it can do          
  425.                   it, you cannot communicate through your keyboard, and          
  426.                   you have to turn the PC off and on again.          
  427.                   Used with care, NEWINT9 can satisfy a real need.          
  428.  
  429.  
  430. *** GRAPHICS ***          
  431.  
  432.      (Let me note that I myself do not have a Color/Graphics adapter,
  433.      so I haven't had much opportunity to write for one.  However, the          
  434.      mighty BORLAND has a Graphics tool set for their usual price of          
  435.      $50.)          
  436.  
  437.      CIRCLE.LIB draws a circle on your screen.  You specify six          
  438.           parameters: H, K and R are the X and Y coordinates of the          
  439.           circle's center and its radius.  "Res" is the resolution --          
  440.           the number of dots used to draw the circle is proportional          
  441.           to Res, as is the time required to draw it.  "Aspect" is a          
  442.           real value that describes the circle's "roundness" -- adjust          
  443.           to a perfect circle, or change it to get an ellipse.          
  444.           Finally,  "color" can be 1, 2, or 3 if you are in the          
  445.           Graphics mode that supports four colors.  (See the descrip-          
  446.           tion of graphics modes in the TURBO 2.0 manual).          
  447.  
  448.      RECTANGL.LIB naturally draws a rectangle on the screen.  You tell          
  449.           it the X and Y coordinates of the upper left and lower right          
  450.           corners, the color (1, 2, or 3 if appropriate), and 1 for a
  451.           filled rectangle, 0 for hollow.
  452.  
  453.  
  454.  
  455.  
  456.  
  457.  
  458.  
  459.  
  460.  
  461.  
  462.  
  463.  
  464.  
  465.  
  466.  
  467.  
  468.  
  469.  
  470.  
  471.                                                 TURBO WHEELS   page 8
  472.  
  473. *** MISCELLANEOUS ROUTINES ***          
  474.  
  475.      EQUIPMNT.LIB uses Interrupt $11 to check the equipment attached          
  476.           to your PC.  It reports on number of printers, RS232 ports,          
  477.           game ports, and diskette drives, the initial video mode, or          
  478.           the amount of RAM on the motherboard.          
  479.  
  480.      GETINTGR.LIB is intended to save you the embarrassment of having          
  481.           your program crash because someone made an invalid entry for          
  482.           an integer.  At the same time, it makes sure that the entry          
  483.           is within a ranges you specify.  Non-numeric keystrokes are          
  484.           ignored, BackSpace works, and the function does not give up          
  485.           until a valid integer is entered.          
  486.  
  487.      GETFREE.LIB is another face-saver.  It gets the amount of free          
  488.           space on the current disk.  That way, your programs can          
  489.           check for space and give alternatives if there's not enough,          
  490.           rather than ignominiously crashing.          
  491.  
  492.      HEXFUNCT.LIB contains the procedure HEX which receives an integer          
  493.           and returns a 5-character hex string (e.g., $BF00).  The hex          
  494.           string always refers to a positive number -- TURBO's integer          
  495.           variable type uses its highest bit to indicate sign, thus          
  496.           restricting the integer range to -32,768 to +32,767.  Hex          
  497.           equivalents are calculated by considering negative integers          
  498.           as offsets down from $10000 (decimal 65,536).  Thus, HEX(-1)          
  499.           = $FFFF.  (NOTE:  the TURBO manual says that the integer          
  500.           range is as stated above, but in my experience, it is not          
  501.           possible to enter -32,768. )          
  502.           
  503.      KAVAIL.LIB returns the number of KiloBytes of memory available.          
  504.           It takes into account the MemAvail function's quirk of          
  505.           reporting amounts greater than 32,767 as negative numbers.          
  506.           
  507.      NOSOUND.PAS does nothing but shut off the sound, if one of your          
  508.           programs crashes with sound on.  When you need it, you NEED          
  509.           it!          
  510.           
  511.      PARAMETR.LIB contains the function GetParameter, which returns a          
  512.           string of up to 80 characters consisting of whatever was          
  513.           entered on the command line after the name of the program.          
  514.           This O N L Y works in COMPILED programs.          
  515.  
  516.      QUEUE.LIB is a generic Queue data structure.  One of Pascal's          
  517.           great advantages over BASIC is its implementation of          
  518.           Pointer^ variables and dynamic lists.  By keeping your data          
  519.           in a linked list instead of an array, you can dedicate only          
  520.           as much memory as you need, up to all the memory the system          
  521.           has.  If you test for memory available with KAVAIL before          
  522.           you add each item to the list, you can safely expand to the          
  523.           maximum memory of different systems without crashing for          
  524.           lack of memory.          
  525.  
  526.  
  527.  
  528.  
  529.  
  530.  
  531.  
  532.  
  533.  
  534.  
  535.  
  536.  
  537.                                                 TURBO WHEELS   page 9
  538.  
  539.  
  540.      REBOOT.LIB does just what it says.  The "warm" reboot produced by          
  541.           Interrupt $19 does NOT clear the RAM, so, for example,          
  542.           SIDEKICK will stay resident.  The programs LESSRAM and          
  543.           NUMDISKS use REBOOT to cause the PC to act as if its          
  544.           internal DIP switches had been reset to indicate a different          
  545.           number of disk drives or different amount of RAM.  One note          
  546.           of caution -- There seems to be some interference in this          
  547.           reboot process from certain device drivers in the CONFIG.SYS          
  548.           file.  The symptom is that the driver (e.g., your hard disk          
  549.           driver, or a RAMdisk) installs itself and then the A: drive          
  550.           spins . . . and spins . . . and that's it.  To avoid this          
  551.           problem, you could always rename CONFIG.SYS to something          
  552.           else temporarily.  IF you can figure out why this happens          
  553.           and how to get around it, PLEASE let me know!          
  554.  
  555.      LESSRAM.COM is handy if you always write your programs on your          
  556.           souped-up 640K SuperPC and want to test whether it will          
  557.           actually run on a lesser machine with, say 96K.  You COULD          
  558.           open the box and change the switches, but it's a lot easier          
  559.           just to go back to DOS and type LESSRAM 96.          
  560.  
  561.      NUMDISKS's raison d'etre is the current confusion of method among         RAMdisks.  Some require that the internal switches be set to          
  562.           the total number of physical drives and RAMdisks, while          
  563.           others insist that the switches show physical drives only.          
  564.           If you need to switch around, you can enter NUMDISKS          
  565.           <number>.  If you put NUMDISKS in a batch file, be sure to          
  566.           add an "n" (or "N") to the number so the program won't pause          
  567.           for a keypress before rebooting.          
  568.  
  569.      SAFEWRIT.LIB is one way to get around the fact that you cannot          
  570.           WRITE certain characters to the screen -- they get inter-          
  571.           preted as Control Characters and warp your display.          
  572.           Procedure SafeWrite catches these characters and replaces          
  573.           them with a related character in Low Video.  Note that          
  574.           another approach would be to use the procedures in          
  575.           SCREEN.LIB to send characters directly to the screen          
  576.           memory.  Using this latter method, you can put ANY character          
  577.           on the screen.          
  578.  
  579.